package com.hzit.rabbitmq.test;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@Component
@RabbitListener(queues = "hzit")
public class RabbitMqListener01 {

	/**
	 * 1. 监听direct消息 (直连消息)
	 */
	@RabbitHandler
	public void getMessage01(String message){
		System.out.println("获取direct消息 ： " + message);
	}

}
